package com.hockeo.shared.rpc.classic;

/**
 * This interface needs to be implemented by all classes that should receive results from
 * an RPC call.
 *
 * @param <T> the class of the object that is expected as result
 * @version $Id$
 * @author jjanke
 */
public interface IRpcResultReceiver<T>
{
  /**
   * Allows to process the data obtained from an RPC remote call.
   *
   * @param result the RPC result data
   * @param strPurpose the purpose of the data (useful if a class receives data for
   *          different purposes), may be <code>null</code>
   */
  public void processRpcResult( T result, String strPurpose );
}
